# 文件的读写
file1 = open("file1.txt", 'w+', encoding="utf-8")
file1.write('hello world')
file1.close()
file1 = open("file1.txt", 'r', encoding="utf-8")
text = file1.read(5)
file1.close()
print(text)
